#!/usr/bin/gnuplot
#
# Plotting a sweep with color coding of the frequencies
#
# AUTHOR: Hagen Wierstorf

# png
#set terminal pngcairo size 450,362 enhanced font 'Arial,10'
#set output 'seed_freq.png'

set terminal eps enhanced font "Helvetica,12"
set output 'seed_freq.eps'

#set term pslatex color
#set out 'seed_freq.tex'

# color definitions
set border linewidth 1.5

unset key
unset colorbox

# creating the palette (its the same as the above defined one)
#set palette rgb 21,22,23
#set palette rgb 20,0,20
set palette defined (0 'blue', 1 'red')
#set palette model RGB functions 0,1,1
# Axes
set style line 11 lc rgb '#000000' lt 1
set border 1 back ls 11
set xtics nomirror out scale 0.75
unset ytics

set xrange [0:150]
set xtics 0, 10, 100

set yrange [-.5:1]
#set cbrange [0:100]

set style line 1 lc palette lw 5
set colorbox

set label 'seed len = 5' at 105, 1
set label 'seed len = 6' at 105, 0.75
set label 'seed len = 7' at 105, 0.5
set label 'seed len = 8' at 105, 0.25
set label 'seed len = 9' at 105, 0
set label 'seed len = 10' at 105, -0.25

plot './Data/seed_5.dat'  u 1:2:3 pt 1 ps 1  linecolor rgb "black", \
	 './Data/seed_6.dat'  u 1:2:3 pt 1 ps 1  linecolor rgb "black", \
	 './Data/seed_7.dat'  u 1:2:3 pt 1 ps 1  linecolor rgb "black", \
	 './Data/seed_8.dat'  u 1:2:3 pt 1 ps 1  linecolor rgb "black", \
	 './Data/seed_9.dat'  u 1:2:3 pt 1 ps 1  linecolor rgb "black", \
	 './Data/seed_10.dat' u 1:2:3 pt 1 ps 1  linecolor rgb "black", \
	 './Data/seed_5.dat'  u 1:2:3 w l ls 1, \
	 './Data/seed_6.dat'  u 1:2:3 w l ls 1, \
	 './Data/seed_7.dat'  u 1:2:3 w l ls 1, \
	 './Data/seed_8.dat'  u 1:2:3 w l ls 1, \
	 './Data/seed_9.dat'  u 1:2:3 w l ls 1, \
	 './Data/seed_10.dat' u 1:2:3 w l ls 1